#include "vtor_snake.h"
#include "vtor_game.h"

#ifdef __USER_DEMO_PROJECT__

VtorSnake VtorSnake_Array[1];
VtorSnake* snake1 = &VtorSnake_Array[0];

extern VtorMap* snake1Map;


void VtorSnake_Init(void)
{
	snake1 = &VtorSnake_Array[0];

	
	VtorSnake_SetSpeed(snake1, 1, 0);
	snake1->headIdx = 0;
	snake1->len = 3;
	snake1->maxLen = 128;
	snake1->body[0].x = 5;
	snake1->body[0].y = 6;

	// 加载享元资源
	snake1->map->width = 16;
	snake1->map->height = 8;
	snake1->map = snake1Map;
	VtorSnake_CreateFood(snake1);
	return;
}

#endif

